package com.ftg.learn.lesson6.exam02.manytomany;

import java.util.Random;

/**
 * 关系
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/7/3 上午9:15
 */
public class Relations {

    private long id;

    private Man man;

    private Women women;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Man getMan() {
        return man;
    }

    public void setMan(Man man) {
        this.man = man;
    }

    public Women getWomen() {
        return women;
    }

    public void setWomen(Women women) {
        this.women = women;
    }

    public static void main(String[] args) {
        Women w1 = new Women("热巴");
        Women w2 = new Women("angleBody");


        Man man1 = new Man("王连富");

        Man man2 = new Man("小郭");

        //realtion

        Relations rs = new Relations();
        rs.setId(1001);
        rs.setMan(man1);
        rs.setWomen(w1);

        Relations rs1 = new Relations();
        rs1.setId(1002);
        rs1.setMan(man1);
        rs1.setWomen(w2);

        Relations rs2 = new Relations();
        rs2.setId(1003);
        rs2.setMan(man2);
        rs2.setWomen(w2);

        Relations[] heb = new Relations[100];
        heb[0] = rs;
        heb[1] = rs1;
        heb[2] = rs2;

    }

}
